﻿using System;
using System.Collections.Generic;

namespace Bookvar.ObjectModel.Collections
{
    [Serializable]
    public class AttachmentCollection : ObservableKeyedCollection<Guid, Attachment>
    {
        public AttachmentCollection()
        {
        }

        public AttachmentCollection( IEnumerable<Attachment> items ) : base( items )
        {
        }

        protected override Guid GetKeyForItem( Attachment item )
        {
            return item.ID;
        }
    }
}